package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.CombosMapper;
import com.ruoyi.merchant.domain.Combos;
import com.ruoyi.merchant.service.ICombosService;

/**
 * 套餐Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-23
 */
@Service
public class CombosServiceImpl implements ICombosService 
{
    @Autowired
    private CombosMapper combosMapper;

    /**
     * 查询套餐
     * 
     * @param comboId 套餐主键
     * @return 套餐
     */
    @Override
    public Combos selectCombosByComboId(String comboId)
    {
        return combosMapper.selectCombosByComboId(comboId);
    }

    /**
     * 查询套餐列表
     * 
     * @param combos 套餐
     * @return 套餐
     */
    @Override
    public List<Combos> selectCombosList(Combos combos)
    {
        return combosMapper.selectCombosList(combos);
    }

    /**
     * 新增套餐
     * 
     * @param combos 套餐
     * @return 结果
     */
    @Override
    public int insertCombos(Combos combos)
    {
        return combosMapper.insertCombos(combos);
    }

    /**
     * 修改套餐
     * 
     * @param combos 套餐
     * @return 结果
     */
    @Override
    public int updateCombos(Combos combos)
    {
        return combosMapper.updateCombos(combos);
    }

    /**
     * 批量删除套餐
     * 
     * @param comboIds 需要删除的套餐主键
     * @return 结果
     */
    @Override
    public int deleteCombosByComboIds(String[] comboIds)
    {
        return combosMapper.deleteCombosByComboIds(comboIds);
    }

    /**
     * 删除套餐信息
     * 
     * @param comboId 套餐主键
     * @return 结果
     */
    @Override
    public int deleteCombosByComboId(String comboId)
    {
        return combosMapper.deleteCombosByComboId(comboId);
    }
}
